7675 TEXT : HOME : VTAB 10: PRINT " MATRIX CREATED ": GOTO 8160
7680 Z = 1:C = 12: DIM C$(C): FOR X = 0 TO 12:C$(X) = MID$ (MD$,Z,5):Z = Z +5: NEXT X: GOTO 7330
7690 Z = 1:R = 12: DIM R$(R): FOR X = 0 TO 12:R$(X) = MID$ (MD$,Z,5):Z = Z +5: NEXT X: GOTO 7670
7700 Z = 1:C = 7: DIM C$(C): FOR X = 0 TO 7:C$(X) = MID$ (DD$,Z,5):Z = Z +5: NEXT X: GOTO 7330
7710 Z = 1:R = 7: DIM R$(R): FOR X = 0 TO 7:R$(X) = MID$ (DD$,Z,5):Z = Z +5: NEXT X: GOTO 7670
7720 HTAB 26: FOR C = 26 TO 39: PRINT "-";: NEXT C: PRINT : RETURN
7730 R = 10:C = 12: DIM R$(R),C$(C):Z = 1: FOR X = 0 TO 12:C$(X) = MID$ (MD$,Z,5):Z = Z +5: NEXT X: FOR Y = 10 TO 1 STEP -1:A = (R -(Y -1)):R$(Y) = RIGHT$(" " + STR$(A),5): NEXT Y:R$(0) = " TOTAL ": GOTO 7670
7740 R = 10:C = 07: DIM R$(R),C$(C):Z = 1: FOR X = 0 TO 07:C$(X) = MID$ (DD$,Z,5):Z = Z +5: NEXT X: FOR Y = 10 TO 1 STEP -1:A = (R -(Y -1)):R$(Y) = RIGHT$(" " + STR$(A),5): NEXT Y:R$(0) = " TOTAL ": GOTO 7670
7997 REM --------------------
7998 REM SAVE MATRIX
7999 REM ---------------------
8000 HOME : VTAB 5
8003 IF R <1 AND C <1 THEN GOTO 8200
8005 INPUT "ENTER THE NAME OF THE MATRIX ";N$: IF N$ = "E" THEN GOTO 2000
8006 VTAB 10: PRINT "SAVING THE ";N$;" MATRIX ON DISK"
8010 PRINT D$;"OPEN MM-";N$
8012 PRINT D$;"WRITE MM-";N$
8015 PRINT C: PRINT R
8020 FOR I = 0 TO C: PRINT C$(I): NEXT I
8030 FOR I = 0 TO R: PRINT R$(I): NEXT I
8035 FOR Y = 0 TO R: FOR X = 0 TO C
8040 PRINT A(Y,X)
8045 NEXT X,Y
8050 PRINT D$;"CLOSE MM-";N$
8053 PRINT D$;"LOCK MM-";N$
8055 VTAB 15: PRINT "MATRIX HAS BEEN SAVED AND LOCKED."
8060 GOTO 8160
8097 REM --------------------
8098 REM LOAD ROUTINE
8099 REM ---------------------
8100 HOME : VTAB 5
8103 IF LS = 1 THEN GOTO 8155
8104 IF LEN(N$) >0 THEN GOTO 8155
8105 INPUT "ENTER THE NAME OF THE MATRIX ";N$: IF N$ = "E" THEN GOTO 2000
8155 VTAB 15: PRINT "THE ";N$;" MATRIX HAS BEEN LOADED."
8160 VTAB 20: PRINT "PRESS ANY KEY TO CONTINUE ";: GET Q$: PRINT
8170 GOTO 2000
8200 HOME : VTAB 05: INVERSE : PRINT "<CTRL-G><CTRL-G><CTRL-G> NOTICE ": NORMAL : PRINT : PRINT " THIS OPTION IS NOT USABLE UNTIL": PRINT "A MATRIX HAS BEEN CREATED OR LOADED. "
8205 VTAB 10: PRINT "TO SEE HOW THIS OPTION WORKS YOU MAY LOAD THE ' TEST ' MATRIX AND THEN TRY IT AGAIN."
8210 VTAB 20: PRINT "PRESS ANY KEY TO RETURN TO THE MENU";: GET Q$: GOTO 2000
8280 PRINT D$
8281 REM INSTRUCTIONS
8285 FOR I = 1 TO 9: HOME
8290 PRINT CHR$(4);"BLOAD CARD";I: VTAB 23: PRINT "PRESS ANY KEY TO CONTINUE";: GET Q$: PRINT
8300 IF Q$ = "E" THEN I = 9
8310 NEXT I
8320 GOTO 2000
9991 REM ------------------
9992 REM END OF JOB
9993 REM ------------------
9995 PRINT "*<CTRL-G>*<CTRL-G>*<CTRL-G> DISK ERROR ***": GOTO 9999
9998 HOME
9999 INVERSE : VTAB 20: PRINT " THE END ": NORMAL : LIST 10000,10004: END